import Cookie from 'cookie_js';

const adminToken = 'user_token';
const usernameKey = 'username';
const check_store = 'store_id';

export function getToken() {
  return Cookie.get(adminToken);
} 

export function getStore() {
  return Cookie.get(check_store);
} 

export function setToken(token) {
  return Cookie.set(adminToken, token);
} 
export function setStore(store_id) {
  return Cookie.set(check_store, store_id);
} 

export function removeToken() {
  return Cookie.remove(adminToken);
} 

export function setUserName(value) {
  return Cookie.set(usernameKey, value)
}

export function getUserName() {
  return Cookie.get(usernameKey)
}